import requests
import ddddocr

req = requests.get("https://bm.ruankao.org.cn/sign/captchaImg?0.4217535054250301")
img = req.content
ocr = ddddocr.DdddOcr()

with open("captcha.png", "wb") as f:
    f.write(img)
    f.close()


result = ocr.classification(img)
print(result)


